/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.library.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 收藏
 *
 * @author pig
 * @date 2023-11-15 14:19:29
 */
@Data
@TableName("collect")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "收藏")
public class CollectEntity extends Model<CollectEntity> {

    private static final long serialVersionUID = 1L;


	/**
	* 主键id
	*/
	@TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="主键id")
    private Long id;

	/**
	* 用户id
	*/
    @ApiModelProperty(value="用户id")
    private String openId;

	/**
	* 资源id
	*/
    @ApiModelProperty(value="资源id")
    private Long resourceId;

	/**
	* 大类id
	*/
    @ApiModelProperty(value="大类id")
    private Long dataTypeId;

	/**
	* 上传时间
	*/
	@TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value="上传时间")
    private LocalDateTime createTime;

	/**
	* 更新时间
	*/
	@TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value="更新时间")
    private LocalDateTime updateTime;

	/**
	* 删除状态
	*/
    @TableLogic
    @ApiModelProperty(value="删除状态")
    private String delFlag;

}
